<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("transport:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("transport:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("transport:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="transport" :rules="ruleValidate" :label-width="80">
            <Form-item label="订单id" prop="orderId">
                <i-input v-model="transport.orderId" placeholder="订单id"/>
            </Form-item>
            <Form-item label="0,同城配送,物流配送" prop="transportType">
                <i-input v-model="transport.transportType" placeholder="0,同城配送,物流配送"/>
            </Form-item>
            <Form-item label="0,未配送,1正在配送,2 已配送,3已取消" prop="transportState">
                <i-input v-model="transport.transportState" placeholder="0,未配送,1正在配送,2 已配送,3已取消"/>
            </Form-item>
            <Form-item label="配送人" prop="sysUserId">
                <i-input v-model="transport.sysUserId" placeholder="配送人"/>
            </Form-item>
            <Form-item label="配送结束时间" prop="endTime">
                <i-input v-model="transport.endTime" placeholder="配送结束时间"/>
            </Form-item>
            <Form-item label="配送开始时间" prop="startTime">
                <i-input v-model="transport.startTime" placeholder="配送开始时间"/>
            </Form-item>
            <Form-item label="修改人" prop="updateBy">
                <i-input v-model="transport.updateBy" placeholder="修改人"/>
            </Form-item>
            <Form-item label="取消原因" prop="cancelCause">
                <i-input v-model="transport.cancelCause" placeholder="取消原因"/>
            </Form-item>
            <Form-item label="修改时间" prop="updateTime">
                <i-input v-model="transport.updateTime" placeholder="修改时间"/>
            </Form-item>
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="transport.createTime" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="备注" prop="common">
                <i-input v-model="transport.common" placeholder="备注"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/transport.js?_${date.systemTime}"></script>
</body>
</html>